import request from '../utils/request'
import { ApiRes } from '../types/ApiRes'
import { Banner,Menu,Goods } from '../types/home'


export const getBannerList = () => {
	return request<ApiRes<Banner[]>>({
		url: 'banner/list'
	})
}

export const getMenuList = () => {
	return request<ApiRes<Menu[]>>({
		url: 'menu/list'
	})
}

export const getGoodsList = (data:{count:number,limitNum:number})=>{
	return request<ApiRes<Goods[]>>({
		url:'pro/list',
		data
	})
}